home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / lynx-2.4 / WWW / Library / Implementation / HTString.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-28  |  1.1 KB  |  52 lines

  1. /*                                                                 String handling for libwww
  2.                                          STRINGS
  3.                                              
  4.    Case-independent string comparison and allocations with copies etc
  5.    
  6.  */
  7. #ifndef HTSTRING_H
  8. #define HTSTRING_H
  9.  
  10. #ifndef HTUTILS_H
  11. #include "HTUtils.h"
  12. #endif /* HTUTILS_H */
  13.  
  14. extern int WWW_TraceFlag;       /* Global flag for all W3 trace */
  15.  
  16. extern CONST char * HTLibraryVersion;   /* String for help screen etc */
  17.  
  18. /*
  19.  
  20. Case-insensitive string comparison
  21.  
  22.    The usual routines (comp instead of cmp) had some problem.
  23.    
  24.  */
  25. extern int strcasecomp  PARAMS((CONST char *a, CONST char *b));
  26. extern int strncasecomp PARAMS((CONST char *a, CONST char *b, int n));
  27.  
  28. /*
  29.  
  30. Malloced string manipulation
  31.  
  32.  */
  33. #define StrAllocCopy(dest, src) HTSACopy (&(dest), src)
  34. #define StrAllocCat(dest, src)  HTSACat  (&(dest), src)
  35. extern char * HTSACopy PARAMS ((char **dest, CONST char *src));
  36. extern char * HTSACat  PARAMS ((char **dest, CONST char *src));
  37.  
  38. /*
  39.  
  40. Next word or quoted string
  41.  
  42.  */
  43. extern char * HTNextField PARAMS ((char** pstr));
  44.  
  45.  
  46. #endif
  47. /*
  48.  
  49.    end
  50.    
  51.     */
  52.